package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    /**
     * 根据Id查询菜品
     * @param id
     * @return
     *
     */
    DishVO getDishById(Long id);

    List<Dish> getDishByCategoryId(Long CategoryId);

    void saveWithFlavor(DishDTO dishDTO);

    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void stopOrBegin(int status, long id);



    void updateWithFlavor(DishDTO dishDTO);

    void deleteBatch(List<Long> ids);

    List<DishVO> listWithFlavor(Dish dish);
}
